/**
 * @author Jeson
 * @date:2015-12-11 下午03:34:51
 * @version :
 *
 */
package com.ctvit.wsservice.basedata.service;

import com.ctvit.wsservice.basedata.domain.ZcdmTSubj;
import com.ctvit.framework.dao.Condition;
import com.ctvit.framework.service.BaseService;


@SuppressWarnings("serial")
public class SubjService extends BaseService {
	/**
	 * 
	 * @ps:插入数据
	 * @param zcdmTSubj
	 */
	public void saveZcdmTsubj(ZcdmTSubj zcdmTSubj) {
		if (zcdmTSubj == null) // 阻止无效参数
			return;
		Condition condition = new Condition();
		condition.add("zSubjCd", zcdmTSubj.getZSubjCd());
		if (genericDao.updateByCondition(zcdmTSubj, null, condition) == 0) {
			genericDao.insert(zcdmTSubj);
		}
	}
}
